<template>
  <btndefault  style="margin-right: -1rem" :status="d_me_is_follow">
    <span v-if="d_me_is_follow" @click="follow(0)">已关注</span>
    <span v-else @click="follow(1)">+关注</span>
  </btndefault>
</template>
<script>
module.exports = {
  props:{
    me_is_follow:{
      type:Number,
      default:0
    }
  },
  data(){
    return {
      d_me_is_follow:this.me_is_follow
    }
  },
  watch:{
    me_is_follow(n){
      this.d_me_is_follow = n
    }
  },
  methods:{
    follow(v){
      let _this = this
      _this.$emit("set_me_is_follow",v)
    }
  }
}
</script>
